package pc29;

import java.util.Scanner;

public class J09Circle {
	public static void main(String[] args) {

		double r[] = new double[1];
		double getArea[] = new double[1];
		double getPerimeter[] = new double[1];

		Scanner sc = new Scanner(System.in);

		System.out.println("반지름 입력할래");
		r[0] = sc.nextDouble();

		getArea(r, getArea);
		getPerimeter(r, getPerimeter);

		System.out.println("면적은 : " + getArea[0]);
		System.out.println("둘레는 : " + getPerimeter[0]);
	}

	public static void getArea(double[] r, double[] getArea) {
		getArea[0] = r[0] * r[0] * 3.14;
	}

	public static void getPerimeter(double[] r, double[] getPerimeter) {
		getPerimeter[0] = 2 * 3.14 * r[0];
	}

}
